><

Using text macros with source code editors



Text macros save time if you frequently use the HTML, JavaScript, and WebObjects source code editors built into Adobe GoLive. They eliminate typing lengthy strings of source code for often-used tags and script elements.

Four text macros are stored in four editable files, which reside in a special Text Macros subfolder within the Modules folder in the Adobe GoLive program folder. One folder can hold a combination of tags; the other three are environment-specific:

  • The Default.macro file can hold any combination of HTML tags, JavaScript strings, and WebObjects code snippets. These objects can be inserted into any of Adobe GoLive's editor windows. This file is Adobe GoLive's default repository for text macros.
  • The HMTL Source.macro file can hold text as well as HTML tags. These macros can be inserted into the HTML source code displayed in Source view for a document.
  • The JavaScript Source.macro file holds prefabricated strings of JavaScript code. These tags can be inserted into the JavaScript source code displayed in the JavaScript editor.
  • The WebObject Source.macro file holds snippets of WebObjects code. These code snippets can be inserted into the WebObjects source code displayed in the WebObjects declaration editor.

  • All text macro files are loaded when Adobe GoLive starts up to make them available throughout the application. The HMTL Source.macro, JavaScript Source.macro, and WebObjects Source.macro files, however, are loaded only if the appropriate program modules are enabled in the Modules Manager.


    Working in HTML > Using text macros with source code editors

    Related subtopics: